package net.lahuobao.mall.entity.admin;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;

/**   
 * @Title: Entity
 * @Description: 商品规格
 * @author zhangdaihao
 * @date 2016-10-21 15:05:00
 * @version V1.0   
 *
 */
@Entity
@Table(name = "mall_productcategory", schema = "lahuobao")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class MallProductCategoryEntity implements java.io.Serializable {
	/**id*/
	private java.lang.Integer id;
	/**categoryname*/
	private java.lang.String categoryname;
	/**categorycode*/
	private java.lang.String categorycode;
	/**parentcategoryid*/
	private java.lang.Integer parentcategoryid;
	/**istop*/
	private java.lang.Integer istop;
	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  id
	 */
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name ="ID",nullable=false,precision=10,scale=0)
	public java.lang.Integer getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  id
	 */
	public void setId(java.lang.Integer id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  categoryname
	 */
	@Column(name ="CATEGORYNAME",nullable=false,length=50)
	public java.lang.String getCategoryname(){
		return this.categoryname;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  categoryname
	 */
	public void setCategoryname(java.lang.String categoryname){
		this.categoryname = categoryname;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  categorycode
	 */
	@Column(name ="CATEGORYCODE",nullable=false,length=10)
	public java.lang.String getCategorycode(){
		return this.categorycode;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  categorycode
	 */
	public void setCategorycode(java.lang.String categorycode){
		this.categorycode = categorycode;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  parentcategoryid
	 */
	@Column(name ="PARENTCATEGORYID",nullable=true,precision=10,scale=0)
	public java.lang.Integer getParentcategoryid(){
		return this.parentcategoryid;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  parentcategoryid
	 */
	public void setParentcategoryid(java.lang.Integer parentcategoryid){
		this.parentcategoryid = parentcategoryid;
	}
	/**
	 *方法: 取得java.lang.Object
	 *@return: java.lang.Object  istop
	 */
	@Column(name ="ISTOP",nullable=false,precision=1)
	public java.lang.Integer getIstop(){
		return this.istop;
	}

	/**
	 *方法: 设置java.lang.Object
	 *@param: java.lang.Object  istop
	 */
	public void setIstop(java.lang.Integer istop){
		this.istop = istop;
	}
}
